package com.controller.lx;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.entity.Product;
import com.service.zy.ProductService;

@Controller
public class ProductController {
	@Autowired
	private ProductService productService;

	/**
	 * 查询
	 * @return
	 */
	@PostMapping("/product_select_")
	@ResponseBody
	public List<Product> findAll(){
		return productService.findAll();
	}
	
}
